
const defaultState = {
  id: '',
}


export default (state=defaultState, action:any) => {
  switch(action?.type) {
    case 'SET_USER': {
      return action.user
    }
    default: {
      return state;
    }
  }
}